package io.bdmc.modules.bss.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Param;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.SmkDevice;
import io.bdmc.modules.bss.model.DevParam;
/**
 * <p>
 *  Mapper 
 * </p>
 *
 * @author huanglu
 * @since 2019-01-21
 */
public interface SmkDeviceMapper extends BaseMapper<SmkDevice> {
    MyPage<SmkDevice> mySelectPage(@Param("myPage") MyPage<SmkDevice> myPage,  @Param("dp") DevParam devParam);

    Integer updateBatch(Long shop_id,Long dept_id,Long[] devids);

    Integer unBindDev(@Param("devids") Long[] devids);

    Map<String,Object> wxDeviceSum(@Param("deptId") Long deptId);

    Long countByDepId(@Param("myPage") MyPage<SmkDevice> myPage);

    Long selectCountByDepId(@Param("deptId") Long deptId);
    
    List<SmkDevice> listHKOfflineDevice();
}
